Skip to content

refactor: replace abstract visitor hierarchy with contract-based polymorphic dispatch#67

Open
artengin wants to merge 7 commits into
masterfrom
refactor-architecture-2
Open

refactor: replace abstract visitor hierarchy with contract-based polymorphic dispatch#67
artengin wants to merge 7 commits into
masterfrom
refactor-architecture-2

Conversation

@artengin
Copy link
Copy Markdown
Contributor

@artengin artengin commented May 6, 2026

No description provided.

@artengin
Copy link
Copy Markdown
Contributor Author

artengin commented May 6, 2026

@codex review

@artengin
Copy link
Copy Markdown
Contributor Author

artengin commented May 6, 2026

It inherits from this commit: #51

@coveralls
Copy link
Copy Markdown

coveralls commented May 6, 2026

Coverage Report for CI Build 25501328605

Coverage decreased (-0.06%) to 98.503%

Details

  • Coverage decreased (-0.06%) from the base build.
  • Patch coverage: 33 of 33 lines across 3 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 334
Covered Lines: 329
Line Coverage: 98.5%
Coverage Strength: 9.95 hits per line

💛 - Coveralls

@artengin artengin self-assigned this May 6, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@artengin artengin assigned DenTray and unassigned artengin May 7, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d13ce08389

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +29 to +30
fn ($trait) => new TraitUse([new Name(class_basename($trait))]),
array_unique(array_filter($this->traits)),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Deduplicate trait names after basename normalization

getInsertableNodes() now calls array_unique() before class_basename(), so inputs like ['App\\Traits\\Loggable', 'Loggable'] produce two identical TraitUse nodes. filterExistingNodes() only removes traits already present in the file, not duplicates within the new candidate list, so this can emit duplicate use Loggable; entries and generate invalid class composition when the same trait is applied twice.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants